﻿@using FCTC_Web.Models
@using FCTC_Web.Models
@model SessionUnit
<style>
    .ulteamlist li
    {
        float:left;
    }
</style>
<ul class="ulteamlist">
@foreach (var item in DAL.CH.GetAllData<Team>())
{
    if (Model != null)
    {
        var teams = Model.GetTeams();
        if (teams.FirstOrDefault(i => i.ID == item.ID) != null)
        {
            <li><input type="checkbox" checked="checked" teamid="@item.ID" /><span>@item.FullName</span></li> 
        }
        else
        {
           <li><input type="checkbox" teamid="@item.ID" /><span>@item.FullName</span></li> 
        }
    }
    else
    {
        <li><input type="checkbox" teamid="@item.ID" /><span>@item.FullName</span></li> 
    }
}
</ul>
